
<!DOCTYPE HTML>
<html>

<head>
  <title>automotrizLUPITA</title>
  <meta name="description" content="website description" />
  <meta name="keywords" content="website keywords, website keywords" />
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" type="text/css" href="../css/style.css" />
  <style type="text/css" title="currentStyle">
      @import "../media/css/demo_page.css";
      @import "../media/css/demo_table_jui.css";
      @import "../themes/dark-hive/jquery-ui-1.8.22.custom.css";
    </style>
  <!-- modernizr enables HTML5 elements and feature detects -->
   <script type="text/javascript" src="../js/jq.js"></script>
  <script type="text/javascript" language="javascript" src="../media/js/jquery.dataTables.js"></script>
  <script type="text/javascript" src="../js/modernizr-1.5.min.js"></script>
    <script src="../js/happy.js"></script>
    <script src="../js/happy.methods.js"></script>
    <script src="../js/personalizados.js"></script>
</head>

<body>
  <div id="main">
    <header>
      <div id="logo">
        <div id="logo_text">
          <!-- class="logo_colour", allows you to change the colour of the text -->
          <h1><a href="#">Automotriz<span class="logo_colour">LUPITA</span></a></h1>
          <h2>Sistema de gestion y administración.</h2>
        </div>
      </div>
      <nav>
        
      </nav>
    </header>
    <div id="site_content">
      <div class="content">
        <div style="width:100%;" align="center" id="principal">
				              <?php
				include('../conn.php');
				$query="SELECT * FROM prefacturas WHERE pedido='".$_GET['id']."'";
				$resul=mysql_query($query);

				?>

				<h4>Pedido <?=$_GET['id']?></h4>
				  <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
					<thead>
						<tr>
							<th>Clave</th>
							<th>Codigo</th>
							<th>Descripcion</th>
							<th>Unidades</th>
							<th>Cantidad</th>
							<th>Precio final</th>

						</tr>
					</thead>
					<tbody>
						<?php
						 while ($rows=mysql_fetch_array($resul)) 
						 {
						 	
						 	?>
						 	<tr>
						 		<td><?=$rows['clave']?></td>
						 		<td><?=$rows['codigo']?></td>
						 		<td><?=$rows['descripcion']?></td>
						 		<td><?=$rows['unidades']?></td>
						 		<td><?=$rows['cantidad']?></td>
						 		<td><?=$rows['precio_final']?></td>
						 	
						 		
						 	</tr>
						 	<?php
						 }

						?>
					</tbody>
				  </table>
				  <script>
				      $(document).ready(function() {
				        $('#example').dataTable({
				        	 "oLanguage": {
				        	 	 "sLengthMenu": 'Mostrar <select>'+
					        '<option value="10">10</option>'+
					        '<option value="20">20</option>'+
					        '<option value="30">30</option>'+
					        '<option value="40">40</option>'+
					        '<option value="50">50</option>'+
					        '<option value="50">100</option>'+
					        '<option value="-1">Todas</option>'+
					        '</select> marcas',
					         "sSearch" : "Buscar",
				            "sZeroRecords": "No hay registros",
				            "sInfo": "Mostrando _START_ hasta _END_ de _TOTAL_ registros",
				            "sInfoEmpty": "Mostrando 0 hasta 0 de 0 registros",
				            "sInfoFiltered": "(filtrado desde _MAX_ registros totales)",
				            
				            	"oPaginate": {
						            "sFirst":"Primero",
						            "sLast":"Ultimo",
						            "sNext":"Siguiente",
						            "sPrevious":"Anterior"
						        	}
				       		 },
				        "bJQueryUI": true,
				        "bStateSave": true,
				         "sPaginationType": "full_numbers",
				         "bAutoWidth": false,
				         
				        });
				      } );
				    </script>


        </div>
      </div>
    </div>
    <footer>
      <p>Copyright &copy; AutomotrizLUPITA | <a href="#">programado y diseñado por SaturnSoft S.A. de C.V.</a></p>
    </footer>
  </div>
  <p>&nbsp;</p>
  <!-- javascript at the bottom for fast page loading -->
  
</body>
</html>
